import 'package:flutter/material.dart';

class Widget_FloatingActionButton_Location_Page extends StatefulWidget {
  @override
  State<StatefulWidget> createState() {
    return Widget_FloatingActionButton_Location_State();
  }
}

class Widget_FloatingActionButton_Location_State
    extends State<Widget_FloatingActionButton_Location_Page> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text("FloatingActionButton"),
        ),
        body: Container(),
        floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,
//        floatingActionButtonLocation: FloatingActionButtonLocation.endDocked,
//        floatingActionButtonLocation: FloatingActionButtonLocation.centerFloat,
//        floatingActionButtonLocation: FloatingActionButtonLocation.endFloat,
        floatingActionButton: FloatingActionButton(
          onPressed: () => print("FloatingActionButton"),
          child: Text("button"),
        ),
      ),
    );
  }
}
//centerDocked 底部中间
//endDocked 底部右侧
//centerFloat 中间偏上
//endFloat 底部偏上